"""
尘埃的对象

@author sean
@date 2021 - 08 - 13 1 =34 下午
"""


# 帧对象
class Thing:

    def __init__(self):
        self.name = None  # 掉落方块的名字
        self.points = []  # 点位列表
        self.head = {}  # 方块头坐标
        self.tail = {}  # 方块头坐标

    def keys(self):
        return ('name', 'points', 'head', 'tail')

    def __getitem__(self, item):
        return getattr(self, item)


# 尘埃帧对象
class Tetris(Thing):

    def __init__(self):
        super().__init__()
        self.name = 'tetris'
